﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ict.DataAccess.Attributes
{
    /// <summary>
    /// 用于标识数据表主键所映射出来的实体类属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class PrimaryKeyFieldAttribute : System.Attribute
    {
        string _value = null;

        public PrimaryKeyFieldAttribute()
        {
        }

        public PrimaryKeyFieldAttribute(string value)
        {
            _value = value;
        }

        public string Value
        {
            get
            {
                return _value;
            }
        }
    }
}
